<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Proyecto de Matemática Discreta 2 - Parte II: DINIC: Fichero Fuente glib/gmacros.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="UNCBL.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Proyecto de Matemática Discreta 2 - Parte II: DINIC</div>
   <div id="projectbrief">Cálculo de flujo maximal sobre un network aplicando el algoritmo de Dinic</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&#160;de&#160;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('glib_2gmacros_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">glib/gmacros.h</div>  </div>
</div>
<div class="contents">
<a href="glib_2gmacros_8h.html">Ir a la documentación de este archivo.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* GLIB - Library of useful routines for C programming</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00006"></a>00006 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00015"></a>00015 <span class="comment"> * License along with this library; if not, write to the</span>
<a name="l00016"></a>00016 <span class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
<a name="l00017"></a>00017 <span class="comment"> * Boston, MA 02111-1307, USA.</span>
<a name="l00018"></a>00018 <span class="comment"> */</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="comment">/*</span>
<a name="l00021"></a>00021 <span class="comment"> * Modified by the GLib Team and others 1997-2000.  See the AUTHORS</span>
<a name="l00022"></a>00022 <span class="comment"> * file for a list of people on the GLib Team.  See the ChangeLog</span>
<a name="l00023"></a>00023 <span class="comment"> * files for a list of changes.  These files are distributed with</span>
<a name="l00024"></a>00024 <span class="comment"> * GLib at ftp://ftp.gtk.org/pub/gtk/.</span>
<a name="l00025"></a>00025 <span class="comment"> */</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">/* This file must not include any other glib header file and must thus</span>
<a name="l00028"></a>00028 <span class="comment"> * not refer to variables from glibconfig.h</span>
<a name="l00029"></a>00029 <span class="comment"> */</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef __G_MACROS_H__</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define __G_MACROS_H__</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="comment">/* We include stddef.h to get the system&#39;s definition of NULL</span>
<a name="l00035"></a>00035 <span class="comment"> */</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;stddef.h&gt;</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="comment">/* Here we provide G_GNUC_EXTENSION as an alias for __extension__,</span>
<a name="l00039"></a>00039 <span class="comment"> * where this is valid. This allows for warningless compilation of</span>
<a name="l00040"></a>00040 <span class="comment"> * &quot;long long&quot; types even in the presence of &#39;-ansi -pedantic&#39;. </span>
<a name="l00041"></a>00041 <span class="comment"> */</span>
<a name="l00042"></a>00042 <span class="preprocessor">#if     __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 8)</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#  define G_GNUC_EXTENSION __extension__</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00045"></a><a class="code" href="glib_2gmacros_8h.html#a2a870ebd11a96cb7fc8c148e4036bd4a">00045</a> <span class="preprocessor"></span><span class="preprocessor">#  define G_GNUC_EXTENSION</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00048"></a>00048 <span class="comment">/* Provide macros to feature the GCC function attribute.</span>
<a name="l00049"></a>00049 <span class="comment"> */</span>
<a name="l00050"></a>00050 <span class="preprocessor">#if    __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 96)</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_PURE                            \</span>
<a name="l00052"></a>00052 <span class="preprocessor">  __attribute__((__pure__))</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_MALLOC                           \</span>
<a name="l00054"></a>00054 <span class="preprocessor">  __attribute__((__malloc__))</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00056"></a><a class="code" href="glib_2gmacros_8h.html#a48be517239dc75aa11ae5293cce8b740">00056</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_PURE</span>
<a name="l00057"></a><a class="code" href="glib_2gmacros_8h.html#a39e268f91ce4a04172ed134eb8e4fe10">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_MALLOC</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
<a name="l00060"></a>00060 <span class="preprocessor">#if     __GNUC__ &gt;= 4</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00063"></a><a class="code" href="glib_2gmacros_8h.html#a5fc2dbdfd8973fb275af04457dbc32c8">00063</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_NULL_TERMINATED</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span>
<a name="l00066"></a>00066 <span class="preprocessor">#if     (__GNUC__ &gt; 4) || (__GNUC__ == 4 &amp;&amp; __GNUC_MINOR__ &gt;= 3)</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_ALLOC_SIZE2(x,y) __attribute__((__alloc_size__(x,y)))</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00070"></a><a class="code" href="glib_2gmacros_8h.html#a91eef449504854e43ad388430b929dd5">00070</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_ALLOC_SIZE(x)</span>
<a name="l00071"></a><a class="code" href="glib_2gmacros_8h.html#a43bde526e3379440a90fd2954ba8077f">00071</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_ALLOC_SIZE2(x,y)</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span>
<a name="l00074"></a>00074 <span class="preprocessor">#if     __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt; 4)</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_PRINTF( format_idx, arg_idx )    \</span>
<a name="l00076"></a>00076 <span class="preprocessor">  __attribute__((__format__ (__printf__, format_idx, arg_idx)))</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_SCANF( format_idx, arg_idx )     \</span>
<a name="l00078"></a>00078 <span class="preprocessor">  __attribute__((__format__ (__scanf__, format_idx, arg_idx)))</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_FORMAT( arg_idx )                \</span>
<a name="l00080"></a>00080 <span class="preprocessor">  __attribute__((__format_arg__ (arg_idx)))</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_NORETURN                         \</span>
<a name="l00082"></a>00082 <span class="preprocessor">  __attribute__((__noreturn__))</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_CONST                            \</span>
<a name="l00084"></a>00084 <span class="preprocessor">  __attribute__((__const__))</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_UNUSED                           \</span>
<a name="l00086"></a>00086 <span class="preprocessor">  __attribute__((__unused__))</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_NO_INSTRUMENT                    \</span>
<a name="l00088"></a>00088 <span class="preprocessor">  __attribute__((__no_instrument_function__))</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor">#else   </span><span class="comment">/* !__GNUC__ */</span>
<a name="l00090"></a><a class="code" href="glib_2gmacros_8h.html#a67c43cba8993fb7f944d7fa1988d26bf">00090</a> <span class="preprocessor">#define G_GNUC_PRINTF( format_idx, arg_idx )</span>
<a name="l00091"></a><a class="code" href="glib_2gmacros_8h.html#ac024c14e7118221e11e136ad6c60a886">00091</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_SCANF( format_idx, arg_idx )</span>
<a name="l00092"></a><a class="code" href="glib_2gmacros_8h.html#a296534d00f35172a796c6fd25695db73">00092</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_FORMAT( arg_idx )</span>
<a name="l00093"></a><a class="code" href="glib_2gmacros_8h.html#a252766cb7c62fe7cffdb93c81cc066d7">00093</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_NORETURN</span>
<a name="l00094"></a><a class="code" href="glib_2gmacros_8h.html#a84663340d618ccc916df094ab7165720">00094</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_CONST</span>
<a name="l00095"></a><a class="code" href="glib_2gmacros_8h.html#afba07d651a969b2d04d1f85f28a5c843">00095</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_UNUSED</span>
<a name="l00096"></a><a class="code" href="glib_2gmacros_8h.html#a50f0a8435740ec1f569b4a5bda80dad9">00096</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_NO_INSTRUMENT</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="preprocessor">#endif  </span><span class="comment">/* !__GNUC__ */</span>
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="preprocessor">#if    __GNUC__ &gt; 3 || (__GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &gt;= 1)</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_DEPRECATED                            \</span>
<a name="l00101"></a>00101 <span class="preprocessor">  __attribute__((__deprecated__))</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00103"></a><a class="code" href="glib_2gmacros_8h.html#a5aede0b28c03616bc18c33b1d5e772e0">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_DEPRECATED</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* __GNUC__ */</span>
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="preprocessor">#if    __GNUC__ &gt; 4 || (__GNUC__ == 4 &amp;&amp; __GNUC_MINOR__ &gt;= 5)</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_DEPRECATED_FOR(f)                        \</span>
<a name="l00108"></a>00108 <span class="preprocessor">  __attribute__((deprecated(&quot;Use &quot; #f &quot; instead&quot;)))</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00110"></a><a class="code" href="glib_2gmacros_8h.html#ab38edadffbbe8e09c31652fac0355542">00110</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_DEPRECATED_FOR(f)        G_GNUC_DEPRECATED</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* __GNUC__ */</span>
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <span class="preprocessor">#if     __GNUC__ &gt; 3 || (__GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &gt;= 3)</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span><span class="preprocessor">#  define G_GNUC_MAY_ALIAS __attribute__((may_alias))</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00116"></a><a class="code" href="glib_2gmacros_8h.html#a9004626696f2495285d942e27778ea1f">00116</a> <span class="preprocessor"></span><span class="preprocessor">#  define G_GNUC_MAY_ALIAS</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span>
<a name="l00119"></a>00119 <span class="preprocessor">#if    __GNUC__ &gt; 3 || (__GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &gt;= 4)</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_WARN_UNUSED_RESULT               \</span>
<a name="l00121"></a>00121 <span class="preprocessor">  __attribute__((warn_unused_result))</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00123"></a><a class="code" href="glib_2gmacros_8h.html#a05898c961f8ba42aae913dd27d3baa32">00123</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_WARN_UNUSED_RESULT</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* __GNUC__ */</span>
<a name="l00125"></a>00125 
<a name="l00126"></a>00126 <span class="preprocessor">#ifndef G_DISABLE_DEPRECATED</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="comment">/* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with</span>
<a name="l00128"></a>00128 <span class="comment"> * macros, so we can refer to them as strings unconditionally.</span>
<a name="l00129"></a>00129 <span class="comment"> * usage not-recommended since gcc-3.0</span>
<a name="l00130"></a>00130 <span class="comment"> */</span>
<a name="l00131"></a>00131 <span class="preprocessor">#if defined (__GNUC__) &amp;&amp; (__GNUC__ &lt; 3)</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_FUNCTION         __FUNCTION__</span>
<a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_PRETTY_FUNCTION  __PRETTY_FUNCTION__</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#else   </span><span class="comment">/* !__GNUC__ */</span>
<a name="l00135"></a><a class="code" href="glib_2gmacros_8h.html#a6df2070256ad67f063f8a48b6a88eb2c">00135</a> <span class="preprocessor">#define G_GNUC_FUNCTION         &quot;&quot;</span>
<a name="l00136"></a><a class="code" href="glib_2gmacros_8h.html#a9862a25151b520b085de047af627d2ce">00136</a> <span class="preprocessor"></span><span class="preprocessor">#define G_GNUC_PRETTY_FUNCTION  &quot;&quot;</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#endif  </span><span class="comment">/* !__GNUC__ */</span>
<a name="l00138"></a>00138 <span class="preprocessor">#endif  </span><span class="comment">/* !G_DISABLE_DEPRECATED */</span>
<a name="l00139"></a>00139 
<a name="l00140"></a><a class="code" href="glib_2gmacros_8h.html#aa44962b9706b924705072fecb387cda1">00140</a> <span class="preprocessor">#define G_STRINGIFY(macro_or_string)    G_STRINGIFY_ARG (macro_or_string)</span>
<a name="l00141"></a><a class="code" href="glib_2gmacros_8h.html#a26f24439d456d9259e80106b9c7f839f">00141</a> <span class="preprocessor"></span><span class="preprocessor">#define G_STRINGIFY_ARG(contents)       #contents</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span>
<a name="l00143"></a><a class="code" href="glib_2gmacros_8h.html#a08ab8289550f0ff38c67e0a762865d1c">00143</a> <span class="preprocessor">#define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2</span>
<a name="l00144"></a><a class="code" href="glib_2gmacros_8h.html#a616476e5f5109bbfe70c82954427418c">00144</a> <span class="preprocessor"></span><span class="preprocessor">#define G_PASTE(identifier1,identifier2)      G_PASTE_ARGS (identifier1, identifier2)</span>
<a name="l00145"></a><a class="code" href="glib_2gmacros_8h.html#ab89726d38b508a0a640eae19fedfa391">00145</a> <span class="preprocessor"></span><span class="preprocessor">#define G_STATIC_ASSERT(expr) typedef struct { char Compile_Time_Assertion[(expr) ? 1 : -1]; } G_PASTE (_GStaticAssert_, __LINE__)</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span>
<a name="l00147"></a>00147 <span class="comment">/* Provide a string identifying the current code position */</span>
<a name="l00148"></a>00148 <span class="preprocessor">#if defined(__GNUC__) &amp;&amp; (__GNUC__ &lt; 3) &amp;&amp; !defined(__cplusplus)</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span><span class="preprocessor">#  define G_STRLOC      __FILE__ &quot;:&quot; G_STRINGIFY (__LINE__) &quot;:&quot; __PRETTY_FUNCTION__ &quot;()&quot;</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00151"></a><a class="code" href="glib_2gmacros_8h.html#a0f84e9e2eb45ae3a6483eb96a543a5db">00151</a> <span class="preprocessor"></span><span class="preprocessor">#  define G_STRLOC      __FILE__ &quot;:&quot; G_STRINGIFY (__LINE__)</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00153"></a>00153 <span class="preprocessor"></span>
<a name="l00154"></a>00154 <span class="comment">/* Provide a string identifying the current function, non-concatenatable */</span>
<a name="l00155"></a>00155 <span class="preprocessor">#if defined (__GNUC__)</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span><span class="preprocessor">#  define G_STRFUNC     ((const char*) (__PRETTY_FUNCTION__))</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span><span class="preprocessor">#elif defined (__STDC_VERSION__) &amp;&amp; __STDC_VERSION__ &gt;= 19901L</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span><span class="preprocessor">#  define G_STRFUNC     ((const char*) (__func__))</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00160"></a><a class="code" href="glib_2gmacros_8h.html#a6ae64f24ec45756cdbd373c7db4382b2">00160</a> <span class="preprocessor"></span><span class="preprocessor">#  define G_STRFUNC     ((const char*) (&quot;???&quot;))</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span>
<a name="l00163"></a>00163 <span class="comment">/* Guard C code in headers, while including them from C++ */</span>
<a name="l00164"></a>00164 <span class="preprocessor">#ifdef  __cplusplus</span>
<a name="l00165"></a>00165 <span class="preprocessor"></span><span class="preprocessor"># define G_BEGIN_DECLS  extern &quot;C&quot; {</span>
<a name="l00166"></a>00166 <span class="preprocessor"></span><span class="preprocessor"># define G_END_DECLS    }</span>
<a name="l00167"></a>00167 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00168"></a><a class="code" href="glib_2gmacros_8h.html#a72c1126856454c07c2f9ab131aa7f2a3">00168</a> <span class="preprocessor"></span><span class="preprocessor"># define G_BEGIN_DECLS</span>
<a name="l00169"></a><a class="code" href="glib_2gmacros_8h.html#a592df9359e90124ffc0d185505c9d567">00169</a> <span class="preprocessor"></span><span class="preprocessor"># define G_END_DECLS</span>
<a name="l00170"></a>00170 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span>
<a name="l00172"></a>00172 <span class="comment">/* Provide definitions for some commonly used macros.</span>
<a name="l00173"></a>00173 <span class="comment"> *  Some of them are only provided if they haven&#39;t already</span>
<a name="l00174"></a>00174 <span class="comment"> *  been defined. It is assumed that if they are already</span>
<a name="l00175"></a>00175 <span class="comment"> *  defined then the current definition is correct.</span>
<a name="l00176"></a>00176 <span class="comment"> */</span>
<a name="l00177"></a>00177 <span class="preprocessor">#ifndef NULL</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span><span class="preprocessor">#  ifdef __cplusplus</span>
<a name="l00179"></a>00179 <span class="preprocessor"></span><span class="preprocessor">#    define NULL        (0L)</span>
<a name="l00180"></a>00180 <span class="preprocessor"></span><span class="preprocessor">#  else </span><span class="comment">/* !__cplusplus */</span>
<a name="l00181"></a><a class="code" href="glib_2gmacros_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">00181</a> <span class="preprocessor">#    define NULL        ((void*) 0)</span>
<a name="l00182"></a>00182 <span class="preprocessor"></span><span class="preprocessor">#  endif </span><span class="comment">/* !__cplusplus */</span>
<a name="l00183"></a>00183 <span class="preprocessor">#endif</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>
<a name="l00185"></a>00185 <span class="preprocessor">#ifndef FALSE</span>
<a name="l00186"></a><a class="code" href="glib_2gmacros_8h.html#aa93f0eb578d23995850d61f7d61c55c1">00186</a> <span class="preprocessor"></span><span class="preprocessor">#define FALSE   (0)</span>
<a name="l00187"></a>00187 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span>
<a name="l00189"></a>00189 <span class="preprocessor">#ifndef TRUE</span>
<a name="l00190"></a><a class="code" href="glib_2gmacros_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">00190</a> <span class="preprocessor"></span><span class="preprocessor">#define TRUE    (!FALSE)</span>
<a name="l00191"></a>00191 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span>
<a name="l00193"></a>00193 <span class="preprocessor">#undef  MAX</span>
<a name="l00194"></a><a class="code" href="glib_2gmacros_8h.html#afa99ec4acc4ecb2dc3c2d05da15d0e3f">00194</a> <span class="preprocessor"></span><span class="preprocessor">#define MAX(a, b)  (((a) &gt; (b)) ? (a) : (b))</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span>
<a name="l00196"></a>00196 <span class="preprocessor">#undef  MIN</span>
<a name="l00197"></a><a class="code" href="glib_2gmacros_8h.html#a3acffbd305ee72dcd4593c0d8af64a4f">00197</a> <span class="preprocessor"></span><span class="preprocessor">#define MIN(a, b)  (((a) &lt; (b)) ? (a) : (b))</span>
<a name="l00198"></a>00198 <span class="preprocessor"></span>
<a name="l00199"></a>00199 <span class="preprocessor">#undef  ABS</span>
<a name="l00200"></a><a class="code" href="glib_2gmacros_8h.html#ae2f08dc603ae93c402abd918ba4e23e1">00200</a> <span class="preprocessor"></span><span class="preprocessor">#define ABS(a)     (((a) &lt; 0) ? -(a) : (a))</span>
<a name="l00201"></a>00201 <span class="preprocessor"></span>
<a name="l00202"></a>00202 <span class="preprocessor">#undef  CLAMP</span>
<a name="l00203"></a><a class="code" href="glib_2gmacros_8h.html#a52a8c67405c41892537f726aad89941c">00203</a> <span class="preprocessor"></span><span class="preprocessor">#define CLAMP(x, low, high)  (((x) &gt; (high)) ? (high) : (((x) &lt; (low)) ? (low) : (x)))</span>
<a name="l00204"></a>00204 <span class="preprocessor"></span>
<a name="l00205"></a>00205 <span class="comment">/* Count the number of elements in an array. The array must be defined</span>
<a name="l00206"></a>00206 <span class="comment"> * as such; using this with a dynamically allocated array will give</span>
<a name="l00207"></a>00207 <span class="comment"> * incorrect results.</span>
<a name="l00208"></a>00208 <span class="comment"> */</span>
<a name="l00209"></a><a class="code" href="glib_2gmacros_8h.html#a66d222f95d8b541e7af7682f03243311">00209</a> <span class="preprocessor">#define G_N_ELEMENTS(arr)               (sizeof (arr) / sizeof ((arr)[0]))</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span>
<a name="l00211"></a>00211 <span class="comment">/* Macros by analogy to GINT_TO_POINTER, GPOINTER_TO_INT</span>
<a name="l00212"></a>00212 <span class="comment"> */</span>
<a name="l00213"></a><a class="code" href="glib_2gmacros_8h.html#a5afab6a9eb0f03041d61d6bfe998a9aa">00213</a> <span class="preprocessor">#define GPOINTER_TO_SIZE(p)     ((gsize) (p))</span>
<a name="l00214"></a><a class="code" href="glib_2gmacros_8h.html#aeb27b236c496ca2b29a5c0a5e5ac86c6">00214</a> <span class="preprocessor"></span><span class="preprocessor">#define GSIZE_TO_POINTER(s)     ((gpointer) (gsize) (s))</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span>
<a name="l00216"></a>00216 <span class="comment">/* Provide convenience macros for handling structure</span>
<a name="l00217"></a>00217 <span class="comment"> * fields through their offsets.</span>
<a name="l00218"></a>00218 <span class="comment"> */</span>
<a name="l00219"></a>00219 
<a name="l00220"></a>00220 <span class="preprocessor">#if defined(__GNUC__)  &amp;&amp; __GNUC__ &gt;= 4</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span><span class="preprocessor">#  define G_STRUCT_OFFSET(struct_type, member) \</span>
<a name="l00222"></a>00222 <span class="preprocessor">      ((glong) offsetof (struct_type, member))</span>
<a name="l00223"></a>00223 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00224"></a><a class="code" href="glib_2gmacros_8h.html#a57c516949591e035f6660011e379b202">00224</a> <span class="preprocessor"></span><span class="preprocessor">#  define G_STRUCT_OFFSET(struct_type, member)  \</span>
<a name="l00225"></a>00225 <span class="preprocessor">      ((glong) ((guint8*) &amp;((struct_type*) 0)-&gt;member))</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00227"></a>00227 <span class="preprocessor"></span>
<a name="l00228"></a><a class="code" href="glib_2gmacros_8h.html#a5a789f57ba4c57d4889228ab7e5539a1">00228</a> <span class="preprocessor">#define G_STRUCT_MEMBER_P(struct_p, struct_offset)   \</span>
<a name="l00229"></a>00229 <span class="preprocessor">    ((gpointer) ((guint8*) (struct_p) + (glong) (struct_offset)))</span>
<a name="l00230"></a><a class="code" href="glib_2gmacros_8h.html#ab3a9c37d612e1953de14ec0b571fb743">00230</a> <span class="preprocessor"></span><span class="preprocessor">#define G_STRUCT_MEMBER(member_type, struct_p, struct_offset)   \</span>
<a name="l00231"></a>00231 <span class="preprocessor">    (*(member_type*) G_STRUCT_MEMBER_P ((struct_p), (struct_offset)))</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span>
<a name="l00233"></a>00233 <span class="comment">/* Provide simple macro statement wrappers:</span>
<a name="l00234"></a>00234 <span class="comment"> *   G_STMT_START { statements; } G_STMT_END;</span>
<a name="l00235"></a>00235 <span class="comment"> * This can be used as a single statement, like:</span>
<a name="l00236"></a>00236 <span class="comment"> *   if (x) G_STMT_START { ... } G_STMT_END; else ...</span>
<a name="l00237"></a>00237 <span class="comment"> * This intentionally does not use compiler extensions like GCC&#39;s &#39;({...})&#39; to</span>
<a name="l00238"></a>00238 <span class="comment"> * avoid portability issue or side effects when compiled with different compilers.</span>
<a name="l00239"></a>00239 <span class="comment"> */</span>
<a name="l00240"></a>00240 <span class="preprocessor">#if !(defined (G_STMT_START) &amp;&amp; defined (G_STMT_END))</span>
<a name="l00241"></a><a class="code" href="glib_2gmacros_8h.html#a6327d90528fbe27566149fdf9a80b073">00241</a> <span class="preprocessor"></span><span class="preprocessor">#  define G_STMT_START  do</span>
<a name="l00242"></a><a class="code" href="glib_2gmacros_8h.html#a0e9db2049beca437478aa7594c85d907">00242</a> <span class="preprocessor"></span><span class="preprocessor">#  define G_STMT_END    while (0)</span>
<a name="l00243"></a>00243 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span>
<a name="l00245"></a>00245 <span class="comment">/* Allow the app programmer to select whether or not return values</span>
<a name="l00246"></a>00246 <span class="comment"> * (usually char*) are const or not.  Don&#39;t try using this feature for</span>
<a name="l00247"></a>00247 <span class="comment"> * functions with C++ linkage.</span>
<a name="l00248"></a>00248 <span class="comment"> */</span>
<a name="l00249"></a>00249 <span class="preprocessor">#ifdef G_DISABLE_CONST_RETURNS</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span><span class="preprocessor">#define G_CONST_RETURN</span>
<a name="l00251"></a>00251 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00252"></a><a class="code" href="glib_2gmacros_8h.html#a95fb4ef7e7f405b070614c1ee9ab455f">00252</a> <span class="preprocessor"></span><span class="preprocessor">#define G_CONST_RETURN const</span>
<a name="l00253"></a>00253 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00254"></a>00254 <span class="preprocessor"></span>
<a name="l00255"></a>00255 <span class="comment">/*</span>
<a name="l00256"></a>00256 <span class="comment"> * The G_LIKELY and G_UNLIKELY macros let the programmer give hints to </span>
<a name="l00257"></a>00257 <span class="comment"> * the compiler about the expected result of an expression. Some compilers</span>
<a name="l00258"></a>00258 <span class="comment"> * can use this information for optimizations.</span>
<a name="l00259"></a>00259 <span class="comment"> *</span>
<a name="l00260"></a>00260 <span class="comment"> * The _G_BOOLEAN_EXPR macro is intended to trigger a gcc warning when</span>
<a name="l00261"></a>00261 <span class="comment"> * putting assignments in g_return_if_fail ().  </span>
<a name="l00262"></a>00262 <span class="comment"> */</span>
<a name="l00263"></a>00263 <span class="preprocessor">#if defined(__GNUC__) &amp;&amp; (__GNUC__ &gt; 2) &amp;&amp; defined(__OPTIMIZE__)</span>
<a name="l00264"></a>00264 <span class="preprocessor"></span><span class="preprocessor">#define _G_BOOLEAN_EXPR(expr)                   \</span>
<a name="l00265"></a>00265 <span class="preprocessor"> __extension__ ({                               \</span>
<a name="l00266"></a>00266 <span class="preprocessor">   int _g_boolean_var_;                         \</span>
<a name="l00267"></a>00267 <span class="preprocessor">   if (expr)                                    \</span>
<a name="l00268"></a>00268 <span class="preprocessor">      _g_boolean_var_ = 1;                      \</span>
<a name="l00269"></a>00269 <span class="preprocessor">   else                                         \</span>
<a name="l00270"></a>00270 <span class="preprocessor">      _g_boolean_var_ = 0;                      \</span>
<a name="l00271"></a>00271 <span class="preprocessor">   _g_boolean_var_;                             \</span>
<a name="l00272"></a>00272 <span class="preprocessor">})</span>
<a name="l00273"></a>00273 <span class="preprocessor"></span><span class="preprocessor">#define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span><span class="preprocessor">#define G_UNLIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 0))</span>
<a name="l00275"></a>00275 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00276"></a><a class="code" href="glib_2gmacros_8h.html#a8fd9e3a5fae5f7da351b2efea2b796bb">00276</a> <span class="preprocessor"></span><span class="preprocessor">#define G_LIKELY(expr) (expr)</span>
<a name="l00277"></a><a class="code" href="glib_2gmacros_8h.html#ab2556f963fbc60ccd2b69926a3d8e35a">00277</a> <span class="preprocessor"></span><span class="preprocessor">#define G_UNLIKELY(expr) (expr)</span>
<a name="l00278"></a>00278 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00279"></a>00279 <span class="preprocessor"></span>
<a name="l00280"></a>00280 <span class="preprocessor">#endif </span><span class="comment">/* __G_MACROS_H__ */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="glib_2gmacros_8h.html">gmacros.h</a>      </li>
      <li class="footer">Generado el Lunes, 6 de Junio de 2011 20:03:18 para Proyecto de Matemática Discreta 2 - Parte II: DINIC por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
